//
//  YDBuyStrategyTitleButton.m
//  PeiZiWangBei
//
//  Created by LK-IOS on 2017/11/15.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import "YDBuyStrategyTitleButton.h"

@implementation YDBuyStrategyTitleButton

-(void)setHighlighted:(BOOL)highlighted
{
    
    
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.titleLabel.x = 0;
    self.titleLabel.centerY = self.height * 0.5;
    [self.titleLabel sizeToFit];
    
    self.imageView.centerY = self.height * 0.5;
    self.imageView.x = self.width - 5;
}

@end
